package sq.service;




import sq.dao.User;
import sq.vo.BaseRespVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * 开发者用户注册,登录,注销接口定义
 *
 * @author BianYang
 */
public interface AuthenticationService {
    BaseRespVO<User> auth(String username, String password, String phone, String verification);

    User loginService(String username, String password, HttpServletRequest request);

    void unAuth(HttpServletRequest request);

    boolean sessionExists(HttpServletRequest request);

    Integer retuenUserId(HttpServletRequest request);

    User returnUser(Integer userId);
}
